package com.example.kotlinstudy.net

import io.reactivex.Observable
import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

interface APIStore {
    /**
     * 传json
     */
    @Headers("Content-Type: application/json", "Accept: application/json")//需要添加头
    @POST("vdyweb/ws/rest/Login")
    open fun getMessage(@Body info: RequestBody?): Call<ResponseBody?>? // 请求体 RequestBody 类型

}
